<%@ page import="org.security.Resource" %>



<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'url', 'error')} required">
	<label for="url">
		<g:message code="resource.url.label" default="Url" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="url" required="" value="${resourceInstance?.url}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="resource.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="type" from="${resourceInstance.constraints.type.inList}" required="" value="${resourceInstance?.type}" valueMessagePrefix="resource.type"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'configAttribute', 'error')} required">
	<label for="configAttribute">
		<g:message code="resource.configAttribute.label" default="Config Attribute" />
		<span class="required-indicator">*</span>
	</label>
	<g:textArea name="configAttribute" required="" value="${resourceInstance?.configAttribute}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'displayName', 'error')} required">
	<label for="displayName">
		<g:message code="resource.displayName.label" default="Display Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="displayName" required="" value="${resourceInstance?.displayName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: resourceInstance, field: 'remark', 'error')} ">
	<label for="remark">
		<g:message code="resource.remark.label" default="Remark" />
		
	</label>
	<g:textArea name="remark" cols="40" rows="5" value="${resourceInstance?.remark}"/>
</div>


